<?php

namespace app\common\validate\shouyou;

use think\Validate;

class Agg extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'agg_id'=>'require',
        'name'=>'require',
        'intro'=>'require',
        'icon'=>'require',
        'news_id'=>'require',
        'shouyou_ids'=>'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['name','intro','icon','news_id','shouyou_ids'],
        'edit' => ['agg_id','name','intro','icon','news_id','shouyou_ids'],
    ];
    
}
